# pythonProject5/api/v1/router.py

from fastapi import APIRouter
from api.v1.routes.ws_realtime import router as ws_realtime_router
from core.config import settings

# --- 子路由导入 ---
from .auth import router as auth_router
from .transcribe import router as transcribe_router
from .translate import router as translate_router
from .records import router as records_router  # 确保这是正确的导入路径
from .health import router as health_router
from .asr_engine import router as asr_engine_router

# --- 创建主路由实例 ---
api_v1_router = APIRouter(
    tags=["API v1"]
)

# 注册子路由
api_v1_router.include_router(auth_router)
api_v1_router.include_router(transcribe_router)
api_v1_router.include_router(translate_router)
api_v1_router.include_router(records_router)
api_v1_router.include_router(health_router)
api_v1_router.include_router(asr_engine_router)
api_v1_router.include_router(ws_realtime_router)
@api_v1_router.get("/health")
def health_check():
    return {"status": "healthy", "env": settings.ENV}